package club.janna.springboot.study.controller;

import club.janna.springboot.study.annotation.JannaLimiter;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @JannaLimiter(1.0)
    @RequestMapping("hello")
    public String hello() {
        return "Hello, Spring boot!";
    }

    @JannaLimiter(3.0)
    @GetMapping("test")
    public String test() {
        return "Hello, World!";
    }
}
